<table>
  <tr>
    <th>Login</th>
    <th>Agency</th>
    <th>Admin?</th>
  </tr>
<% @users.each do |user| %>
  <tr>
    <td><%= user.login %></td>
    <td><%= user.agency.name unless user.agency.nil? %></td>
    <td><%= "Y" if user.admin %><%= "N" unless user.admin %></td>
    <td><%= link_to "Edit", edit_user_path(user) %></td>
    <td><%= link_to "Delete", user_path(user), :method => 'delete', :confirm => 'Are you sure?', :class => 'delete' %></td>
  </tr>
<% end -%>
</table>

<br />

<%= link_to "Add a new User", new_user_path %>